import projectSetting from '@/setting/projectSetting'

const {
  navTheme,
  menuSetting
} = projectSetting

interface ProjectSettingState {
  navTheme: string  // 导航栏主题风格
}

const state = {
  navTheme,
  menuSetting
}

const mutations = {
  SET_NavTheme: (state: any, value: string) => {
    state.navTheme = value
  }
}

const actions = {
  setNavTheme({ state, commit, rootState }, value: string) {
    commit('SET_NavTheme', value)
  }

}


export default {
  namespaced: true,
  state,
  mutations,
  actions
}
